public class deleteDuplicates {
    public static void main(String[] args) {
        ListNode node1 = new ListNode(1);
        ListNode node2 = node1.next = new ListNode(2);
        ListNode node3 = node2.next = new ListNode(2);
        ListNode node4 = node3.next = new ListNode(3);
        Solution solution = new Solution();
        solution.deleteDuplicates(node1);

    }
}
